<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  
  <title>再也不用为中文输入法而烦恼了 | 四叶草</title>
  
  <meta name="keywords" content="archlinux,linux">
  
  
  <meta name="description" content="一个技术宅的技术分享">
  

  
  <link rel="alternate" href="/atom.xml" title="四叶草">
  

  <meta name="HandheldFriendly" content="True" />
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <!-- meta -->
  

  <!-- link -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css">
  

  

  
    
<link rel="stylesheet" href="/style.css">

  

  <script>
    function setLoadingBarProgress(num) {
      document.getElementById('loading-bar').style.width=num+"%";
    }
  </script>

  
  
<meta name="generator" content="Hexo 4.2.1"><link rel="alternate" href="/atom.xml" title="四叶草" type="application/atom+xml">
</head>

<body>
  
  
  <header class="l_header material">
  <div id="loading-bar-wrapper">
    <div id="loading-bar" class="material"></div>
  </div>

	<div class='wrapper'>
		<div class="nav-main container container--flex">
      <a class="logo flat-box" href='/' >
        
          四叶草
        
      </a>
			<div class='menu navgation'>
				<ul class='h-list'>
          
  					
  						<li>
								<a class="nav flat-box" href="/"
                  
                  
                  id="home">
									<i class='fas fa-home fa-fw'></i>&nbsp;主页
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/categories/"
                  
                    rel="nofollow"
                  
                  
                  id="categories">
									<i class='fas fa-folder-open fa-fw'></i>&nbsp;分类
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/tags/"
                  
                    rel="nofollow"
                  
                  
                  id="tags">
									<i class='fas fa-hashtag fa-fw'></i>&nbsp;标签
								</a>
							</li>
      			
  						<li>
								<a class="nav flat-box" href="/archives/"
                  
                    rel="nofollow"
                  
                  
                  id="archives">
									<i class='fas fa-archive fa-fw'></i>&nbsp;归档
								</a>
							</li>
      			
      		
				</ul>
			</div>

			
				<div class="m_search">
					<form name="searchform" class="form u-search-form">
						<input type="text" class="input u-search-input" placeholder="搜索" />
						<i class="icon fas fa-search fa-fw"></i>
					</form>
				</div>
			
			<ul class='switcher h-list'>
				
					<li class='s-search'><a class="fas fa-search fa-fw" href='javascript:void(0)'></a></li>
				
				<li class='s-menu'><a class="fas fa-bars fa-fw" href='javascript:void(0)'></a></li>
			</ul>
		</div>

		<div class='nav-sub container container--flex'>
			<a class="logo flat-box"></a>
			<ul class='switcher h-list'>
				<li class='s-comment'><a class="flat-btn fas fa-comments fa-fw" href='javascript:void(0)'></a></li>
        
          <li class='s-toc'><a class="flat-btn fas fa-list fa-fw" href='javascript:void(0)'></a></li>
        
			</ul>
		</div>
	</div>
</header>
	<aside class="menu-phone">
    <header>
		<nav class="menu navgation">
      <ul>
        
          
            <li>
							<a class="nav flat-box" href="/"
                
                
                id="home">
								<i class='fas fa-clock fa-fw'></i>&nbsp;近期
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/categories/"
                
                  rel="nofollow"
                
                
                id="categories">
								<i class='fas fa-folder-open fa-fw'></i>&nbsp;分类
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/tags/"
                
                  rel="nofollow"
                
                
                id="tags">
								<i class='fas fa-hashtag fa-fw'></i>&nbsp;标签
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/archives/"
                
                  rel="nofollow"
                
                
                id="archives">
								<i class='fas fa-archive fa-fw'></i>&nbsp;归档
							</a>
            </li>
          
            <li>
							<a class="nav flat-box" href="/about/"
                
                  rel="nofollow"
                
                
                id="about">
								<i class='fas fa-info-circle fa-fw'></i>&nbsp;关于
							</a>
            </li>
          
       
      </ul>
		</nav>
    </header>
	</aside>
<script>setLoadingBarProgress(40);</script>



  <div class="l_body nocover">
    <div class='body-wrapper'>
      <div class='l_main'>
  

  <article id="post" class="post white-box article-type-post" itemscope itemprop="blogPost">
    


  <section class='meta'>
    
    
    <div class="meta" id="header-meta">
      
        
  
    <h1 class="title">
      <a href="/d/cloverpinyin/">
        再也不用为中文输入法而烦恼了
      </a>
    </h1>
  


      
      <div class='new-meta-box'>
        
          
        
          
            
  <div class='new-meta-item author'>
    
      <a href="/about" rel="nofollow">
        
          <i class="fas fa-user" aria-hidden="true"></i>
        
        <p>四叶草🍀</p>
      </a>
    
  </div>


          
        
          
            <div class="new-meta-item date">
  <a class='notlink'>
    <i class="fas fa-calendar-alt" aria-hidden="true"></i>
    <p>2020-06-10</p>
  </a>
</div>

          
        
          
            
  
  <div class='new-meta-item category'>
    <a href='/categories/%E5%8E%9F%E5%88%9B%E5%BC%80%E5%8F%91/' rel="nofollow">
      <i class="fas fa-folder-open" aria-hidden="true"></i>
      <p>原创开发</p>
    </a>
  </div>


          
        
          
            

  <div class="new-meta-item markdown">
    
    
      <a href="https://github.com/fkxxyz/fkxxyz-blog-src/blob/master/source/_posts/d/cloverpinyin.md" target="_blank" rel="nofollow noopener">
    
      <i class="fab fa-markdown"></i>
      <p>md源文档</p>
    </a>
  </div>



          
        
          
            

  <div class="new-meta-item download">
    
    
      <a href="https://github.com/fkxxyz/fkxxyz-blog-src/raw/master/source/_posts/d/cloverpinyin.md" target="_blank" rel="nofollow noopener">
    
      <i class="fas fa-download"></i>
      <p>下载本文</p>
    </a>
  </div>



          
        
          
            
  
    <div class="new-meta-item browse busuanzi">
      <a class='notlink'>
        <i class="fas fa-eye" aria-hidden="true"></i>
        <p>
          <span id="busuanzi_value_page_pv">
            <i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i>
          </span>
        </p>
      </a>
    </div>
  


          
        
          
            

          
        
      </div>
      
        <hr>
      
    </div>
  </section>


    <section class="article typo">
      <div class="article-entry" itemprop="articleBody">
        <p>你是否经历过搜狗输入法总是闪退bug的绝望？</p>
<p>你是否经历过 fcitx 自带输入法的词库简陋？</p>
<p>你是否经历过在 linux 中尝试各种输入法都不理想呢？</p>
<p>这里是帮你脱离苦海的地方。</p>
<a id="more"></a>

<h2 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h2><p>项目地址：</p>
<ul>
<li><strong>github</strong>    <a href="https://github.com/fkxxyz/rime-cloverpinyin" target="_blank" rel="noopener">https://github.com/fkxxyz/rime-cloverpinyin</a></li>
<li><strong>gitee</strong>    <a href="https://gitee.com/fkxxyz/rime-cloverpinyin" target="_blank" rel="noopener">https://gitee.com/fkxxyz/rime-cloverpinyin</a></li>
</ul>
<p>这是我亲自打造的基于<a href="https://rime.im/" target="_blank" rel="noopener">rime</a>的简体拼音输入方案，有以下几大特点：</p>
<ol>
<li><p>完全从零开始制作文字的拼音和基础词库，导入了几个很好用的开源词库。</p>
</li>
<li><p>加入繁简切换，包括自定义词库也能切换繁体（这在rime官方默认配置是没有现成的）</p>
</li>
<li><p>默认加入 emoji 表情输入支持</p>
<p><img src="/img/cloverpinyin-1.png" alt=""></p>
</li>
<li><p>加入拼音输入特殊符号的支持（如输入 pingfang 即可打出 ²）</p>
<p><img src="/img/cloverpinyin-2.png" alt=""></p>
</li>
<li><p>修改了几乎所有特殊符号的按键，使之符合搜狗输入法的习惯</p>
</li>
</ol>
<p>不磨蹭了，直接介绍怎么开始使用吧。</p>
<h2 id="开始"><a href="#开始" class="headerlink" title="开始"></a>开始</h2><p>本文只介绍如何在 linux 上使用，而 rime 是跨平台的，windows 可以用小狼毫应用该方案，macOS 可以用鼠鬚管应用该方案，甚至安卓也有同文输入法，如果你想在这些平台使用，可以具体参照官方的<a href="https://rime.im/download/" target="_blank" rel="noopener">下载安装说明</a></p>
<hr>
<p>linux 下的输入法框架目前有三个 fcitx、fcitx5、ibus ，而 rime 可以在任意其中一个运行，选择一个自己喜欢的即可。</p>
<p>本文以 fcitx 为例</p>
<h3 id="第一步：安装并配置-fcitx"><a href="#第一步：安装并配置-fcitx" class="headerlink" title="第一步：安装并配置 fcitx"></a>第一步：安装并配置 fcitx</h3><p>在 archlinux 下：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S fcitx fcitx-qt5 fcitx-configtool</span><br></pre></td></tr></table></figure>

<p>然后配置 fcitx 的环境变量</p>
<p>在 ~/.xprofile 写入</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">export GTK_IM_MODULE=fcitx</span><br><span class="line">export QT_IM_MODULE=fcitx</span><br><span class="line">export XMODIFIERS="@im=fcitx"</span><br><span class="line"></span><br><span class="line">export LANG="zh_CN.UTF-8"</span><br><span class="line">export LC_CTYPE="zh_CN.UTF-8"</span><br></pre></td></tr></table></figure>



<p>其他发行版的安装参见 <a href="https://fcitx-im.org/wiki/Install_and_Configure/zh-hans" target="_blank" rel="noopener">小企鹅官网安装配置方法</a></p>
<p>安装和配置完成后，记得重新登录桌面使之生效。</p>
<h3 id="第二步：安装-rime"><a href="#第二步：安装-rime" class="headerlink" title="第二步：安装 rime"></a>第二步：安装 rime</h3><p>在 archlinux 下，安装 rime：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S fcitx-rime</span><br></pre></td></tr></table></figure>

<p>其他发行版请用相应的包管理器安装，详见 <a href="https://rime.im/download/" target="_blank" rel="noopener">https://rime.im/download/</a></p>
<h3 id="第三步：安装并配置输入方案"><a href="#第三步：安装并配置输入方案" class="headerlink" title="第三步：安装并配置输入方案"></a>第三步：安装并配置输入方案</h3><h4 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h4><p>在 archlinux 下，可以从 <a href="https://wiki.archlinux.org/index.php/Arch_User_Repository_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)" target="_blank" rel="noopener">AUR</a> 直接安装即可：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S fcitx-cloverpinyin</span><br></pre></td></tr></table></figure>

<p>在其它发行版下，按以下步骤手动安装到用户目录</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> 先用相应的包管理器安装 rime-emoji</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> 如果没有这个包，你可以手动克隆该项目，放到 ~/.config/fcitx/rime 里：</span></span><br><span class="line"><span class="meta">#</span><span class="bash">    git <span class="built_in">clone</span> https://github.com/rime/rime-emoji.git</span></span><br><span class="line"><span class="meta">#</span><span class="bash">    mkdir -p ~/.config/fcitx/rime</span></span><br><span class="line"><span class="meta">#</span><span class="bash">    <span class="built_in">cd</span> rime-emoji</span></span><br><span class="line"><span class="meta">#</span><span class="bash">    cp -r *.yaml opencc ~/.config/fcitx/rime</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 克隆仓库 （记得先安装好 git）</span></span><br><span class="line">git clone https://gitee.com/fkxxyz/rime-cloverpinyin.git</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 确保用户文件夹存在</span></span><br><span class="line">mkdir -p ~/.config/fcitx/rime</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"> 复制到用户文件夹</span></span><br><span class="line">cp -r rime-cloverpinyin/data/* ~/.config/fcitx/rime</span><br></pre></td></tr></table></figure>

<h4 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h4><p>创建 ~/.config/fcitx/rime/default.custom.yaml ，内容为</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">patch:</span></span><br><span class="line">  <span class="attr">"menu/page_size":</span> <span class="number">8</span></span><br><span class="line">  <span class="attr">schema_list:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="attr">schema:</span> <span class="string">clover</span></span><br></pre></td></tr></table></figure>

<p>其中 8 表示打字的时候输入面板的每一页的候选词数目，可以设置成 1~9 任意数字。</p>
<p>注意 rime 的配置文件严格遵守 yaml 语法，缩进都是两个空格，否则配置是无效的（很多人折腾死在这）</p>
<p>写好该文件之后，点击右下角托盘图标右键菜单，点“重新部署”，然后再点右键，在方案列表里面应该就有“ 🍀️四叶草拼音输入法”的选项了。</p>
<p>关于 default.custom.yaml 文件的更多解释，可以参考<a href="https://github.com/rime/home/wiki/CustomizationGuide" target="_blank" rel="noopener">官方文档定制指南</a></p>
<h4 id="模糊音"><a href="#模糊音" class="headerlink" title="模糊音"></a>模糊音</h4><p>对于模糊音的配置，目前还没有方便的图形界面的配置，如果有需要的话照做吧：</p>
<p>创建 ~/.config/fcitx/rime/clover.custom.yaml ，内容为</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">patch:</span></span><br><span class="line">  <span class="attr">speller/algebra:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">abbrev/^([a-z]).+$/$1/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">abbrev/^([zcs]h).+$/$1/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^([nl])ue$/$1ve/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^([jqxy])u/$1v/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^ding$/din/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/un$/uen/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ui$/uei/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/iu$/iou/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([aeiou])ng$/$1gn/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([dtngkhrzcs])o(u|ng)$/$1o/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ong$/on/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ao$/oa/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([iu])a(o|ng?)$/a$1$2/</span></span><br></pre></td></tr></table></figure>

<p>然后参考官方推荐的模糊音配置 <a href="https://gist.github.com/lotem/2320943" target="_blank" rel="noopener">https://gist.github.com/lotem/2320943</a></p>
<p>找到你想添加的模糊音，在第三行前面加上即可。</p>
<p>再次强调 yaml 的语法，上面每个 derive 前面都是四个空格，不能用 tab 代替。</p>
<p>如，我想把 en 与 eng 和 in 与 ing 模糊，那么修改后就变成了这样：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">patch:</span></span><br><span class="line">  <span class="attr">speller/algebra:</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([ei])n$/$1ng/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([ei])ng$/$1n/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">abbrev/^([a-z]).+$/$1/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">abbrev/^([zcs]h).+$/$1/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^([nl])ue$/$1ve/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^([jqxy])u/$1v/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/^ding$/din/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/un$/uen/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ui$/uei/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/iu$/iou/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([aeiou])ng$/$1gn/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([dtngkhrzcs])o(u|ng)$/$1o/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ong$/on/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/ao$/oa/</span></span><br><span class="line">    <span class="bullet">-</span> <span class="string">derive/([iu])a(o|ng?)$/a$1$2/</span></span><br></pre></td></tr></table></figure>

<p>当然如果你能看懂上面的正则表达式，那么你也可以自己自定义模糊音了。</p>
<p>修改完成后，记得重新部署生效。</p>
<h4 id="美观"><a href="#美观" class="headerlink" title="美观"></a>美观</h4><p>你以为这个输入法会很丑没办法吗？我的这篇博文能让你眼前一亮：</p>
<p><a href="https://www.fkxxyz.com/d/ssfconv/">fcitx 真的也可以这么美 —— 对 fcitx 使用搜狗皮肤的改进</a></p>
<h2 id="其它"><a href="#其它" class="headerlink" title="其它"></a>其它</h2><h3 id="为什么我要自己做这个方案呢"><a href="#为什么我要自己做这个方案呢" class="headerlink" title="为什么我要自己做这个方案呢"></a>为什么我要自己做这个方案呢</h3><p>rime输入法引擎几乎拥有所有的优点（开源、干净无广告、运行流畅、跨平台、…），甚至云同步也能用坚果云之类的服务手动实现，唯一的缺点就是门槛高定制困难，默认配置的不习惯劝退了很多人。</p>
<p>在此方案诞生之前，我没能找到一个比较不错的简体拼音（全拼）的输入方案，多数人用惯了大陆国产的输入法，而以我的动手能力，完全能够按照这些输入法的习惯，自己定制一个方案，共享给更多的人，让更多的人不需要怎么配置也能用上非常类似于搜狗拼音输入法的方案，降低所有人的使用门槛。所以，为什么不自己做一个呢？</p>
<h3 id="写在最后"><a href="#写在最后" class="headerlink" title="写在最后"></a>写在最后</h3><p>此项目完全开源，你可以随意 fork 或修改和定制，如果你觉得好用，可以来<a href="https://aur.archlinux.org/packages/rime-cloverpinyin/" target="_blank" rel="noopener">AUR投票</a>和在<a href="https://github.com/fkxxyz/rime-cloverpinyin" target="_blank" rel="noopener">github上star</a>，投票和star的人越多越容易被搜索到，以此更好地传播出去。</p>
<p>如果你觉得有哪里需要改进的地方，欢迎在项目的 <a href="https://github.com/fkxxyz/rime-cloverpinyin/issues" target="_blank" rel="noopener">issues</a> 提出，如果 github 访问较慢，在码云的 <a href="https://gitee.com/fkxxyz/rime-cloverpinyin/issues" target="_blank" rel="noopener">issues</a> 提出也行，我看到后会回复。</p>
<p>当然你也可以直接<a href="https://www.fkxxyz.com/about/#%E5%85%B3%E4%BA%8E%E6%88%91">联系我</a>本人。</p>

      </div>
      
      
        <br>
        


  <section class='meta' id="footer-meta">
    <div class='new-meta-box'>
      
        
          <div class="new-meta-item date" itemprop="dateUpdated" datetime="2020-06-10T07:48:19+08:00">
  <a class='notlink'>
    <i class="fas fa-clock" aria-hidden="true"></i>
    <p>更新于 2020年6月10日</p>
  </a>
</div>

        
      
        
          
  
  <div class="new-meta-item meta-tags"><a class="tag" href="/tags/rime/" rel="nofollow"><i class="fas fa-tag" aria-hidden="true"></i><p>rime</p></a></div> <div class="new-meta-item meta-tags"><a class="tag" href="/tags/fcitx/" rel="nofollow"><i class="fas fa-tag" aria-hidden="true"></i><p>fcitx</p></a></div> <div class="new-meta-item meta-tags"><a class="tag" href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" rel="nofollow"><i class="fas fa-tag" aria-hidden="true"></i><p>输入法</p></a></div>


        
      
        
          
  <div class="new-meta-item share -mob-share-list">
  <div class="-mob-share-list share-body">
    
      
        <a class="-mob-share-qq" title="QQ好友" rel="external nofollow noopener noreferrer"
          
          href="http://connect.qq.com/widget/shareqq/index.html?url=https://www.fkxxyz.com/d/cloverpinyin/&title=再也不用为中文输入法而烦恼了 | 四叶草&summary=你是否经历过搜狗输入法总是闪退bug的绝望？
你是否经历过 fcitx 自带输入法的词库简陋？
你是否经历过在 linux 中尝试各种输入法都不理想呢？
这里是帮你脱离苦海的地方。"
          
          >
          
            <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qq.png">
          
        </a>
      
    
      
        <a class="-mob-share-qzone" title="QQ空间" rel="external nofollow noopener noreferrer"
          
          href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https://www.fkxxyz.com/d/cloverpinyin/&title=再也不用为中文输入法而烦恼了 | 四叶草&summary=你是否经历过搜狗输入法总是闪退bug的绝望？
你是否经历过 fcitx 自带输入法的词库简陋？
你是否经历过在 linux 中尝试各种输入法都不理想呢？
这里是帮你脱离苦海的地方。"
          
          >
          
            <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qzone.png">
          
        </a>
      
    
      
        <a class="-mob-share-weibo" title="微博" rel="external nofollow noopener noreferrer"
          
          href="http://service.weibo.com/share/share.php?url=https://www.fkxxyz.com/d/cloverpinyin/&title=再也不用为中文输入法而烦恼了 | 四叶草&summary=你是否经历过搜狗输入法总是闪退bug的绝望？
你是否经历过 fcitx 自带输入法的词库简陋？
你是否经历过在 linux 中尝试各种输入法都不理想呢？
这里是帮你脱离苦海的地方。"
          
          >
          
            <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/weibo.png">
          
        </a>
      
    
  </div>
</div>



        
      
    </div>
  </section>


      
      
          <div class="prev-next">
              
              
                  <section class="next">
                      <span class="art-item-right" aria-hidden="true">
                          <h6>下一页&nbsp;<i class="fas fa-chevron-right" aria-hidden="true"></i></h6>
                          <h4>
                              <a href="/d/simp-score/" rel="prev" title="用 python 实现了个文本简谱解释器，可以用来编配和弦">
                                  
                                      用 python 实现了个文本简谱解释器，可以用来编配和弦
                                  
                              </a>
                          </h4>
                          
                              
                              <h6 class="tags">
                                  <a class="tag" href="/tags/python/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> python</a> <a class="tag" href="/tags/%E9%9F%B3%E4%B9%90/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> 音乐</a> <a class="tag" href="/tags/%E5%92%8C%E5%BC%A6/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> 和弦</a> <a class="tag" href="/tags/%E5%8D%B3%E5%85%B4%E4%BC%B4%E5%A5%8F/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> 即兴伴奏</a>
                              </h6>
                          
                      </span>
                  </section>
              
          </div>
      
    </section>
  </article>



  <!-- 显示推荐文章和评论 -->



  






<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->



  <script>
    window.subData = {
      title: '再也不用为中文输入法而烦恼了',
      tools: true
    }
  </script>


</div>
<aside class='l_side'>
  
    
    
      
      
        
          
          
        
          
          
        
          
          
        
          
          
            
              <section class='widget grid'>
  
<header class='material'>
  <div><i class="fas fa-map-signs fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;站内导航</div>
  
</header>

  <div class='content material'>
    <ul class="grid navgation">
      
        <li><a class="flat-box" title="/" href="/"
          
          
          id="home">
          
            <i class="fas fa-clock fa-fw" aria-hidden="true"></i>
          
          近期文章
        </a></li>
      
        <li><a class="flat-box" title="/archives/" href="/archives/"
          
            rel="nofollow"
          
          
          id="archives">
          
            <i class="fas fa-archive fa-fw" aria-hidden="true"></i>
          
          文章归档
        </a></li>
      
        <li><a class="flat-box" title="/about/" href="/about/"
          
            rel="nofollow"
          
          
          id="about">
          
            <i class="fas fa-info-circle fa-fw" aria-hidden="true"></i>
          
          关于小站
        </a></li>
      
    </ul>
  </div>
</section>

            
          
        
          
          
        
          
          
        
          
          
        
          
          
        
      
        
          
          
        
          
          
        
          
          
        
          
          
        
          
          
            
              
  <section class='widget category'>
    
<header class='material'>
  <div><i class="fas fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;文章分类</div>
  
    <a class="rightBtn"
    
      rel="nofollow"
    
    
    href="/categories/"
    title="categories/">
    <i class="fas fa-expand-arrows-alt fa-fw"></i></a>
  
</header>

    <div class='content material'>
      <ul class="entry">
        
          <li><a class="flat-box" title="/categories/%E5%8E%9F%E5%88%9B%E5%BC%80%E5%8F%91/" href="/categories/%E5%8E%9F%E5%88%9B%E5%BC%80%E5%8F%91/"><div class='name'>原创开发</div><div class='badge'>(5)</div></a></li>
        
          <li><a class="flat-box" title="/categories/%E6%8E%A2%E7%A9%B6%E5%AD%A6%E4%B9%A0/" href="/categories/%E6%8E%A2%E7%A9%B6%E5%AD%A6%E4%B9%A0/"><div class='name'>探究学习</div><div class='badge'>(6)</div></a></li>
        
          <li><a class="flat-box" title="/categories/%E6%95%99%E7%A8%8B/" href="/categories/%E6%95%99%E7%A8%8B/"><div class='name'>教程</div><div class='badge'>(7)</div></a></li>
        
          <li><a class="flat-box" title="/categories/%E8%AE%B0%E5%BD%95/" href="/categories/%E8%AE%B0%E5%BD%95/"><div class='name'>记录</div><div class='badge'>(1)</div></a></li>
        
      </ul>
    </div>
  </section>


            
          
        
          
          
        
          
          
        
          
          
        
      
        
          
          
        
          
          
        
          
          
        
          
          
        
          
          
        
          
          
            
              
  <section class='widget tagcloud'>
    
<header class='material'>
  <div><i class="fas fa-tags fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;热门标签</div>
  
    <a class="rightBtn"
    
      rel="nofollow"
    
    
    href="/tags/"
    title="tags/">
    <i class="fas fa-expand-arrows-alt fa-fw"></i></a>
  
</header>

    <div class='content material'>
      <a href="/tags/archlinux/" style="font-size: 24px; color: #555">archlinux</a> <a href="/tags/fcitx/" style="font-size: 16.5px; color: #888">fcitx</a> <a href="/tags/hexo/" style="font-size: 16.5px; color: #888">hexo</a> <a href="/tags/linux/" style="font-size: 19px; color: #777">linux</a> <a href="/tags/php/" style="font-size: 14px; color: #999">php</a> <a href="/tags/python/" style="font-size: 21.5px; color: #666">python</a> <a href="/tags/rime/" style="font-size: 14px; color: #999">rime</a> <a href="/tags/sed/" style="font-size: 14px; color: #999">sed</a> <a href="/tags/shell/" style="font-size: 14px; color: #999">shell</a> <a href="/tags/wine/" style="font-size: 16.5px; color: #888">wine</a> <a href="/tags/%E4%BF%A1%E6%81%AF%E5%AE%89%E5%85%A8/" style="font-size: 16.5px; color: #888">信息安全</a> <a href="/tags/%E5%89%8D%E7%AB%AF/" style="font-size: 14px; color: #999">前端</a> <a href="/tags/%E5%8D%B3%E5%85%B4%E4%BC%B4%E5%A5%8F/" style="font-size: 14px; color: #999">即兴伴奏</a> <a href="/tags/%E5%8F%8C%E6%98%BE%E5%8D%A1%E5%88%87%E6%8D%A2/" style="font-size: 14px; color: #999">双显卡切换</a> <a href="/tags/%E5%92%8C%E5%BC%A6/" style="font-size: 14px; color: #999">和弦</a> <a href="/tags/%E6%80%9D%E7%BB%B4%E5%AF%BC%E5%9B%BE/" style="font-size: 16.5px; color: #888">思维导图</a> <a href="/tags/%E6%A1%8C%E9%9D%A2%E7%8E%AF%E5%A2%83/" style="font-size: 14px; color: #999">桌面环境</a> <a href="/tags/%E7%9A%AE%E8%82%A4/" style="font-size: 14px; color: #999">皮肤</a> <a href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" style="font-size: 16.5px; color: #888">输入法</a> <a href="/tags/%E9%9F%B3%E4%B9%90/" style="font-size: 14px; color: #999">音乐</a>
    </div>
  </section>


            
          
        
          
          
        
          
          
        
      
        
          
          
        
          
          
        
          
          
            
              
  <section class='widget toc-wrapper'>
    
<header class='material'>
  <div><i class="fas fa-list fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;本文目录</div>
  
    <!-- <div class='wrapper'><a class="s-toc rightBtn" rel="external nofollow noopener noreferrer" href="javascript:void(0)"><i class="fas fa-thumbtack fa-fw"></i></a></div> -->
  
</header>

    <div class='content material'>
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#简介"><span class="toc-text">简介</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开始"><span class="toc-text">开始</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#第一步：安装并配置-fcitx"><span class="toc-text">第一步：安装并配置 fcitx</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#第二步：安装-rime"><span class="toc-text">第二步：安装 rime</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#第三步：安装并配置输入方案"><span class="toc-text">第三步：安装并配置输入方案</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#安装"><span class="toc-text">安装</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#配置"><span class="toc-text">配置</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#模糊音"><span class="toc-text">模糊音</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#美观"><span class="toc-text">美观</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#其它"><span class="toc-text">其它</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#为什么我要自己做这个方案呢"><span class="toc-text">为什么我要自己做这个方案呢</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#写在最后"><span class="toc-text">写在最后</span></a></li></ol></li></ol>
    </div>
  </section>


            
          
        
          
          
        
          
          
        
          
          
        
          
          
        
          
          
        
      
    

  
</aside>

<footer id="footer" class="clearfix">
  
  
    <div class="social-wrapper">
      
        
          <a href="/atom.xml"
            class="social fas fa-rss flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="mailto:fkxxyz@163.com"
            class="social fas fa-envelope flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://github.com/fkxxyz"
            class="social fab fa-github flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
        
          <a href="https://ti.qq.com/open_qq/index2.html?url=mqqapi%3a%2f%2fuserprofile%2ffriend_profile_card%3fsrc_type%3dweb%26version%3d1.0%26source%3d2%26uin%3d396519827"
            class="social fab fa-qq flat-btn"
            target="_blank"
            rel="external nofollow noopener noreferrer">
          </a>
        
      
    </div>
  
  <br>
  <div><p>博客内容遵循 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" target="_blank" rel="noopener">署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议</a></p>
</div>
  <div>
    本站使用
    <a href="https://xaoxuu.com/wiki/material-x/" target="_blank" class="codename">Material X</a>
    作为主题
    
      ，
      总访问量为
      <span id="busuanzi_value_site_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
      次
    
    。
  </div>
</footer>
<script>setLoadingBarProgress(80);</script>


      <script>setLoadingBarProgress(60);</script>
    </div>
    <a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>

  <script>
    var GOOGLE_CUSTOM_SEARCH_API_KEY = "";
    var GOOGLE_CUSTOM_SEARCH_ENGINE_ID = "";
    var ALGOLIA_API_KEY = "";
    var ALGOLIA_APP_ID = "";
    var ALGOLIA_INDEX_NAME = "";
    var AZURE_SERVICE_NAME = "";
    var AZURE_INDEX_NAME = "";
    var AZURE_QUERY_KEY = "";
    var BAIDU_API_ID = "";
    var SEARCH_SERVICE = "hexo" || "hexo";
    var ROOT = "/"||"/";
    if(!ROOT.endsWith('/'))ROOT += '/';
  </script>

<script src="//instant.page/1.2.2" type="module" integrity="sha384-2xV8M5griQmzyiY3CDqh1dn4z3llDVqZDqzjzcY+jCBCk/a5fXJmuZ/40JJAPeoU"></script>




  <script async src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js"></script>




  
  
  
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-backstretch/2.0.4/jquery.backstretch.min.js"></script>
    <script type="text/javascript">
      $(function(){
        if ('') {
          $('').backstretch(
          ["/img/background.jpg"],
          {
            duration: "6000",
            fade: "2500"
          });
        } else {
          $.backstretch(
          ["/img/background.jpg"],
          {
            duration: "6000",
            fade: "2500"
          });
        }
      });
    </script>
  











  
<script src="/js/app.js"></script>



  
<script src="/js/search.js"></script>





<!-- 复制 -->
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script>
  let COPY_SUCCESS = "复制成功";
  let COPY_FAILURE = "复制失败";
  /*页面载入完成后，创建复制按钮*/
  !function (e, t, a) {
    /* code */
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '  <i class="fa fa-copy"></i><span>复制</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });

      clipboard.on('success', function(e) {
        //您可以加入成功提示
        console.info('Action:', e.action);
        console.info('Text:', e.text);
        console.info('Trigger:', e.trigger);
        success_prompt(COPY_SUCCESS);
        e.clearSelection();
      });
      clipboard.on('error', function(e) {
        //您可以加入失败提示
        console.error('Action:', e.action);
        console.error('Trigger:', e.trigger);
        fail_prompt(COPY_FAILURE);
      });
    }
    initCopyCode();

  }(window, document);

  /**
   * 弹出式提示框，默认1.5秒自动消失
   * @param message 提示信息
   * @param style 提示样式，有alert-success、alert-danger、alert-warning、alert-info
   * @param time 消失时间
   */
  var prompt = function (message, style, time)
  {
      style = (style === undefined) ? 'alert-success' : style;
      time = (time === undefined) ? 1500 : time*1000;
      $('<div>')
          .appendTo('body')
          .addClass('alert ' + style)
          .html(message)
          .show()
          .delay(time)
          .fadeOut();
  };

  // 成功提示
  var success_prompt = function(message, time)
  {
      prompt(message, 'alert-success', time);
  };

  // 失败提示
  var fail_prompt = function(message, time)
  {
      prompt(message, 'alert-danger', time);
  };

  // 提醒
  var warning_prompt = function(message, time)
  {
      prompt(message, 'alert-warning', time);
  };

  // 信息提示
  var info_prompt = function(message, time)
  {
      prompt(message, 'alert-info', time);
  };

</script>


<!-- fancybox -->
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
<script>
  let LAZY_LOAD_IMAGE = "";
  $(".article-entry").find("fancybox").find("img").each(function () {
      var element = document.createElement("a");
      $(element).attr("data-fancybox", "gallery");
      $(element).attr("href", $(this).attr("src"));
      /* 图片采用懒加载处理时,
       * 一般图片标签内会有个属性名来存放图片的真实地址，比如 data-original,
       * 那么此处将原本的属性名src替换为对应属性名data-original,
       * 修改如下
       */
       if (LAZY_LOAD_IMAGE) {
         $(element).attr("href", $(this).attr("data-original"));
       }
      $(this).wrap(element);
  });
</script>





  <script>setLoadingBarProgress(100);</script>
</body>
</html>
